package com.jiyun.home;

import com.jiyun.common.pojo.product.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("car-product")
public interface OrderFeign {


    @PostMapping("/carProduct/OrderInfo/add")
    void Add(@SpringQueryMap OrderInfo orderInfo);

    @GetMapping("/carProduct/OrderInfo/findByOrderNumber/{trade}")
    OrderInfo findByOrderNumber(@PathVariable String trade);

    @GetMapping("/carProduct/OrderInfo/update/{id}")
    void update(@PathVariable Integer id);
}
